﻿using System;
using System.Collections.Generic;
using System.Drawing;
using We.Moonlight.ViItem;

namespace We.Moonlight.ViDesk
{
    public class ActiveDesk
    {
        private int id;
        private string name;
        private List<IVi> documents = new List<IVi>();
        private Image icon;

        public ActiveDesk(PassiveDesk P)
        {
            name = P.Name; id = P.ID;
            try { icon = new Bitmap(P.Icon.FullName); }
            catch (NullReferenceException) { icon = global::We.Moonlight.Properties.Resources.application; }

        }

        public int ID
        {
            get { return id; }
        }

        public Image Icon
        {
            get { return icon; }
            set { icon = value; }
        }
        public String Name
        {
            get { return name; }
            set { name = value; }
        }

        public List<IVi> Documents
        {
            get { return documents; }
            set { documents = value; }
        }
        public PassiveDesk DeActivate()
        {
            //Send all changes to the Database
            throw new NotImplementedException();
            //return a Passive Desk
        }
    }
}